import { API_ENUM, API_CONFIG } from './api'
import { hocksApi } from '@/api/utils/apiProcessingHocks';
import type { AxiosResponse } from 'axios';

/** 文件上传 */
const filesUpload = (params: any) => {
  return hocksApi(API_CONFIG[API_ENUM.FILES_UPLOAD], params, (response: AxiosResponse) => {
    return response.data;
  }).post();
}
const filesUploadDb = (params: any) => {
  return hocksApi(API_CONFIG[API_ENUM.FILES_UPLOAD_DB], params, (response: AxiosResponse) => {
    return response.data;
  }).post();
}
const deepSpeech = (params: any) => {
  return hocksApi(API_CONFIG[API_ENUM.DEEP_SPEEK], params, (response: AxiosResponse) => {
    return response.data;
  }).post();
}
export { filesUpload, filesUploadDb, deepSpeech };